package com.example.telesys.mapper;

import com.example.telesys.RocketMQTransactionEntity.TxLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TxLogMapper {

    @Insert("insert into txlog (txId, date) values (#{txLog.txId},#{txLog.date})")
    int insert(@Param("txLog") TxLog txLog);

    @Select("select* from txlog where txLogId =  #{txLogId}")
    TxLog findById(@Param("txLogId") String txLogId);
}
